<%= form_for(@bag) do |f| %>
  <% if @bag.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@bag.errors.count, "error") %> prohibited this bag from being saved:</h2>

      <ul>
      <% @bag.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
  <div class="cols">
    <div>
      <%= f.label :quantity, "العدد" %>
      <%= f.text_field :quantity %>
    </div>
  </div>

  <div class="actions">
    <%= f.submit "إضافة الحقائب" %>
  </div>
<% end %>
